#################################################
#       MAKEFILE FOR ZIPIOS STATIC LIB		#
#						#
# Autor: Marek Szanyi				#
# Date:  17.1.2010				#
#						#
#################################################

# echo for text output
ECHO = /bin/echo 

# source code files
SOURCE_FILES = ./src/basicentry.cpp ./src/collcoll.cpp \
	       ./src/deflateoutputstreambuf.cpp ./src/dircoll.cpp \
	       ./src/fcoll.cpp ./src/fcollexceptions.cpp ./src/fileentry.cpp \
	       ./src/filepath.cpp ./src/filterinputstreambuf.cpp ./src/filteroutputstreambuf.cpp \
	       ./src/zipfile.cpp ./src/ziphead.cpp ./src/zipheadio.cpp ./src/zipinputstream.cpp \
	       ./src/zipinputstreambuf.cpp ./src/inflateinputstreambuf.cpp

# object files
OBJ_FILES = $(SOURCE_FILES:%.cpp=%.o)

# default rule
all	: ./lib/libZipios.a

# remove the old lib and create the new one
./lib/libZipios.a: $(OBJ_FILES)
	rm -f $@
	ar cq $@ $(OBJ_FILES)

# all set and done message
	@$(ECHO) -n -e "\n\n****** All Set and Done! *******\n\n"
